{% extends "jsx.jinja2" %}

{% block imports %}
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'dva';
import { FormattedMessage } from 'react-intl';
import styles from 'assets/{{module}}.less';
{% for k, v in elements.iteritems() -%}
import {{k}} from '{{v}}';
{% endfor -%}
<!---->
{% endblock -%}
{%- block class -%}
class {{page}} extends Component {
    constructor (...args) {
        {% for k, v in eventFuncs.iteritems() %}
        this.{{k}} = this.{{k}}.bind(this);
        {% endfor %}
    }
    {% for k, v in eventFuncs.iteritems() %}
    {{k}} ({{v}}){

    }
    {% endfor %}

}
{% endblock %}
{%- block exports -%}
export default {{page}};
{% endblock %}